/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-12-07 14:01:37
 */
import { Controller, Get, HttpCode } from '@nestjs/common';
import { ApiResponse, ApiOperation } from '@nestjs/swagger';
import { EpidemicSituationService } from './epidemic-situation.service';

@Controller('epidemic-situation')
export class EpidemicSituationController {
  constructor(private readonly epidemicSituationService: EpidemicSituationService) {}
  @HttpCode(200)
  @Get('/getDomesticRiskArea')
  @ApiResponse({
    status: 200,
    description: '获取国内风险地区',
  })
  @ApiOperation({ summary: '获取国内风险地区' })
  async getDomesticRiskArea() {
    return await this.epidemicSituationService.getDomesticRiskArea()
  }
}
